<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Forpastime <Forpastime@qq.com>
// +----------------------------------------------------------------------
namespace api\partner\validate;

use think\Validate;

class OrderValidate extends Validate
{
    protected $rule = [
        'license_id'    =>'require',
        'shop_name'        =>  'require',
	    'shop_address'      =>  'require',
	    'tel'        =>  'require'
    ];
    protected $message = [
        'license_id.require'    =>  '企业统一社会信用代码不能为空',
        'shop_name.require'    =>  '店名不能为空',
	    'shop_address.require'  =>  '店铺地址不能为空',
	    'tel.require'    =>  '电话不能为空'
    ];

    protected $scene = [
        'saveShop'  => [ 'shop_name' , 'shop_address' , 'tel' ],
        'addShop'  => [ 'shop_name' , 'shop_address' , 'tel' ,'license_id'],
        'editShop' => ['shop_name', 'shop_address' , 'tel' ,'license_id']
    ];
}